# -*- coding: utf-8 -*-
# @File  : func.py
# @Author: zbh
# @Date  : 2025/3/12_16:02


from selenium import webdriver
from webdriver_manager.chrome import ChromeDriverManager
# 使用 ChromeDriverManager 自动下载并设置 ChromeDriver
driver = webdriver.Chrome(service=webdriver.chrome.service.Service(ChromeDriverManager().install()))



def get_driver():
    # driver.get("http://www.baidu.com")
    return driver

def getid(object):
    driver.find_element_by_id(object)


# get_driver()